package com.video_study.result;

//响应的实体对象
public class Response {
    //响应的状态码
    private String code="0";
    //响应的消息
    private String msg="success";

    public Response(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Response() {
    }
    public Response(ExceptionMsg exceptionMsg) {
        this.code = exceptionMsg.getCode();
        this.msg = exceptionMsg.getMsg();
    }
    public Response(String code) {
        this.code = code;
        this.msg = "";
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
